package com.fh.service.ccode;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import com.fh.dao.DaoSupport;
import com.fh.util.PageData;

@Service("homeService")
public class HomeService {
	@Resource(name = "daoSupport")
	private DaoSupport dao;
	
	/*
	*获取全部图片
	*/
	public List<PageData> getAllPictures(PageData pd)throws Exception{
		return (List<PageData>)dao.findForList("HomePicturesMapper.picList", pd);
	}
	
	/*
	* 获取高校数，人才数，方案数
	*/
	public PageData getAllNums(PageData pd)throws Exception{
		return (PageData) dao.findForObject("HomeMapper.getAllNum", pd);
	}
	
	
	/*
	* 获取当前任务数、RMB悬赏
	*/
	public PageData getMissionNumAndAward(PageData pd)throws Exception{
		return (PageData) dao.findForObject("HomeMapper.getMissionNumAndAward", pd);
	}
}
